package towerDefense.units;

import java.awt.Shape;
import java.awt.image.BufferedImage;
import towerDefense.towers.CircleSprite;


public abstract class ConstantMovementSprite extends CircleSprite
{

    private double mySpeed;


    public ConstantMovementSprite ()
    {};


    public ConstantMovementSprite (BufferedImage image,
                                   double x,
                                   double y,
                                   double s,
                                   double spd)
    {
        super(image, x, y, s);
        mySpeed = spd;
    }


    public ConstantMovementSprite (BufferedImage image, double s, double spd)
    {
        super(image, s);
        mySpeed = spd;

    }


    public ConstantMovementSprite (double x, double y, double s, double spd)
    {
        super(x, y, s);
        mySpeed = spd;

    }


    public ConstantMovementSprite (double r, double s, double spd)
    {
        super();
        mySpeed = spd;

    }


    public ConstantMovementSprite (Shape s, double spd)
    {
        super();
        mySpeed = spd;

    }


    public void setConstantSpeed (double d)
    {
        this.mySpeed = d;
    }


    public double getConstantSpeed ()
    {
        return mySpeed;
    }

//    @Override
//    public void update (long elapsedTime)
//    {
//        super.update(elapsedTime);
//        this.setMovement(mySpeed, 90); //TODO what direction should this be?
//    }
}
